package com.linux.huhx;

import org.springframework.context.MessageSource;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by huhx on 2017-05-19.
 */
public class MessageTest {
    public static void main(String[] args) {
        MessageSource source = new ClassPathXmlApplicationContext("META-INF/config/config.xml");
        String message = source.getMessage("message", new Object[]{"huhx", "linux"}, null);
        System.out.println(message);
    }
}
